#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


class Father:
    def print_info_1(self):
        print('实例方法')

    @staticmethod
    def print_info_2():
        print('静态方法')

    @classmethod
    def print_info_3(cls):
        print('类方法')


father = Father()

print(father.__class__)

# __class__可以省略
father.__class__.print_info_1(father)
father.__class__.print_info_2()
father.__class__.print_info_3()

# 如果想要知道一个实例对象里有多少属性和方法可以使用一个内置函数
print(dir(father))


"""
__init__
__str__
__class__

"""